<input type="button" value="OK" onclick="opener.parent.document.getElementById('<?php echo $box;?>').value='<?php echo $filename;?>';window.close();"/>